package org.jackysoft.entity.base;




import org.jackysoft.annotations.Id;
import org.jackysoft.annotations.OptionValue;

import com.google.gson.annotations.Expose;

/**
 * 用于用string 做Id的实体类, 适合普通PO,Id作为主键编号,uuid类型
 * */

public abstract class AbstractEntity extends AbstractRootEntity {
	/**
	 * 
	 */
	private static final long serialVersionUID = -6921077822536164802L;
	
	@Expose	
	protected String id;

	
	@Id
	@OptionValue
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id + "";
	}
}
